Skip to content

Create Admin Command: New Flags #5749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Aug 5, 2025

This adds flags to target changes to the first default admin user, and to generate a password.

Related to #4575.

New flags:

  • --generate-password: Generate a random password, and echo it back out as the only output on success.
  • --initial: Update the default [email protected] user if an existing admin, otherwise create a new admin user if there's no existing admin accounts.

When the --initial flag is given, the email and name of the account will default to [email protected] and Admin if not provided (Allowing simpler default account creation in future). If the default admin does not exist with this flag, and an existing non-default admin already exists, then user creation will be skipped with a message and an exit code of 2.

Docs Updates

  • Details these flags and behaviours in the command line docs

Added flags to target changes to the first default admin user, and to
generate a password.
This is related to #4575.
@ssddanbrown ssddanbrown self-assigned this Aug 5, 2025
@ssddanbrown ssddanbrown added this to the Next Feature Release milestone Aug 5, 2025
- Also changed first-admin to initial.
- Updated initial handling to not require email/name to be passed, using
  defaults instead.
- Adds missing existing email use check.
Return status for skipped --initial creation will now return 2, so that
it can be identified seperate from a creation and from an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant